﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookStore.Data;
using System.Data;

namespace BookStore.Bussiness
{
    public class paymentService
    {
        #region getbyID
        public static paymentInfo getbyID(int paymentID) {
            return paymentController.getbyID(paymentID);
        }
        #endregion

        #region getAll
        public static DataTable getAll() {
            return paymentController.ListPayment();
        }
        #endregion

        #region insert
        public static bool insertPayment(paymentInfo objPayment) {
            return paymentController.insertPayment(objPayment);
        }
        #endregion

        #region update
        public static bool updatePayment(paymentInfo objPayment) {
            return paymentController.updatePayment(objPayment);
        }
        #endregion

        #region delete
        public static bool deletePayment(int paymentID) {
            return paymentController.deletePayment(paymentID);
        }
        #endregion
    }
}
